import 'package:flutter/material.dart';

class MyRowText extends StatelessWidget {
  String text;
  OnItemClickListener onItemClickListener;

  MyRowText(this.text, this.onItemClickListener) {}

  @override
  Widget build(BuildContext context) {
    var view = Container(
      child: Row(
        children: <Widget>[
          Text(
            "$text",
            softWrap: true,
            style: TextStyle(
              fontSize: 15.0,
              color: Color.fromARGB(255, 51, 51, 51),
            ),
          )
        ],),
      height: 50.0,
      color: Color.fromARGB(255, 241, 241, 241),
      padding: EdgeInsets.only(left: 20.0),
      margin: EdgeInsets.only(bottom: 1.0),
    );
    return InkWell(
      onTap: onItemClickListener,
      child: view,
    );
  }
}

typedef OnItemClickListener = Function();